package A20180417;

import java.util.ArrayList;

import org.omg.CORBA.INITIALIZE;

public class ComparableCircle extends Circle implements Comparable {
	
	public ComparableCircle() {}
	
	public ComparableCircle(double r) {
		super.setR(r);
	}
	
	@Override
	public int compareTo(Object obj) {
		ComparableCircle anCircle = (ComparableCircle)obj;
		if(this.getR() > anCircle.getR()) {
			return 1;
		}else if (this.getR() == anCircle.getR()) {
			return 0;
		}else {
			return -1;
		}
	}
	
	
	
}
